package com.woniu.common.entity;

import java.io.Serializable;

/**
 * tb_jp_hospital_department
 * @author 
 */
public class TbJpHospitalDepartment implements Serializable {
    private Long id;

    /**
     * 医院ID
     */
    private Long hospitalid;

    /**
     * 科室名称
     */
    private String departmentname;

    /**
     * 对接人ID
     */
    private Long departmentDockingPeople;

    /**
     * 股东ID
     */
    private Long shareholderid;

    /**
     * 1级分销商
     */
    private Long distributor1;

    /**
     * 2级分销商
     */
    private Long distributor2;

    /**
     * 医院银行卡号
     */
    private String hospitalCardNo;

    /**
     * 创建时间
     */
    private String createTime;

    /**
     * 维修人员ID
     */
    private Long accendantid;

    private String departphone;

    /**
     * 收益分成
     */
    private String gainSharing;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getHospitalid() {
        return hospitalid;
    }

    public void setHospitalid(Long hospitalid) {
        this.hospitalid = hospitalid;
    }

    public String getDepartmentname() {
        return departmentname;
    }

    public void setDepartmentname(String departmentname) {
        this.departmentname = departmentname;
    }

    public Long getDepartmentDockingPeople() {
        return departmentDockingPeople;
    }

    public void setDepartmentDockingPeople(Long departmentDockingPeople) {
        this.departmentDockingPeople = departmentDockingPeople;
    }

    public Long getShareholderid() {
        return shareholderid;
    }

    public void setShareholderid(Long shareholderid) {
        this.shareholderid = shareholderid;
    }

    public Long getDistributor1() {
        return distributor1;
    }

    public void setDistributor1(Long distributor1) {
        this.distributor1 = distributor1;
    }

    public Long getDistributor2() {
        return distributor2;
    }

    public void setDistributor2(Long distributor2) {
        this.distributor2 = distributor2;
    }

    public String getHospitalCardNo() {
        return hospitalCardNo;
    }

    public void setHospitalCardNo(String hospitalCardNo) {
        this.hospitalCardNo = hospitalCardNo;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public Long getAccendantid() {
        return accendantid;
    }

    public void setAccendantid(Long accendantid) {
        this.accendantid = accendantid;
    }

    public String getDepartphone() {
        return departphone;
    }

    public void setDepartphone(String departphone) {
        this.departphone = departphone;
    }

    public String getGainSharing() {
        return gainSharing;
    }

    public void setGainSharing(String gainSharing) {
        this.gainSharing = gainSharing;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TbJpHospitalDepartment other = (TbJpHospitalDepartment) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getHospitalid() == null ? other.getHospitalid() == null : this.getHospitalid().equals(other.getHospitalid()))
            && (this.getDepartmentname() == null ? other.getDepartmentname() == null : this.getDepartmentname().equals(other.getDepartmentname()))
            && (this.getDepartmentDockingPeople() == null ? other.getDepartmentDockingPeople() == null : this.getDepartmentDockingPeople().equals(other.getDepartmentDockingPeople()))
            && (this.getShareholderid() == null ? other.getShareholderid() == null : this.getShareholderid().equals(other.getShareholderid()))
            && (this.getDistributor1() == null ? other.getDistributor1() == null : this.getDistributor1().equals(other.getDistributor1()))
            && (this.getDistributor2() == null ? other.getDistributor2() == null : this.getDistributor2().equals(other.getDistributor2()))
            && (this.getHospitalCardNo() == null ? other.getHospitalCardNo() == null : this.getHospitalCardNo().equals(other.getHospitalCardNo()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getAccendantid() == null ? other.getAccendantid() == null : this.getAccendantid().equals(other.getAccendantid()))
            && (this.getDepartphone() == null ? other.getDepartphone() == null : this.getDepartphone().equals(other.getDepartphone()))
            && (this.getGainSharing() == null ? other.getGainSharing() == null : this.getGainSharing().equals(other.getGainSharing()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getHospitalid() == null) ? 0 : getHospitalid().hashCode());
        result = prime * result + ((getDepartmentname() == null) ? 0 : getDepartmentname().hashCode());
        result = prime * result + ((getDepartmentDockingPeople() == null) ? 0 : getDepartmentDockingPeople().hashCode());
        result = prime * result + ((getShareholderid() == null) ? 0 : getShareholderid().hashCode());
        result = prime * result + ((getDistributor1() == null) ? 0 : getDistributor1().hashCode());
        result = prime * result + ((getDistributor2() == null) ? 0 : getDistributor2().hashCode());
        result = prime * result + ((getHospitalCardNo() == null) ? 0 : getHospitalCardNo().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getAccendantid() == null) ? 0 : getAccendantid().hashCode());
        result = prime * result + ((getDepartphone() == null) ? 0 : getDepartphone().hashCode());
        result = prime * result + ((getGainSharing() == null) ? 0 : getGainSharing().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", hospitalid=").append(hospitalid);
        sb.append(", departmentname=").append(departmentname);
        sb.append(", departmentDockingPeople=").append(departmentDockingPeople);
        sb.append(", shareholderid=").append(shareholderid);
        sb.append(", distributor1=").append(distributor1);
        sb.append(", distributor2=").append(distributor2);
        sb.append(", hospitalCardNo=").append(hospitalCardNo);
        sb.append(", createTime=").append(createTime);
        sb.append(", accendantid=").append(accendantid);
        sb.append(", departphone=").append(departphone);
        sb.append(", gainSharing=").append(gainSharing);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}